<?php
session_start();
$color = $_POST['color'];
$_SESSION['color'] = $color;
$a = [
    'code' => 1,
    'msg' => 'success'
];
echo json_encode($a);